package com.cci.kangdao.controller;

import com.cci.kangdao.service.CommonReasonService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;

/**
 * @author William Du
 * @date 2020/4/29
 */
@Controller
public class CommonReasonController {

    @Resource
    private CommonReasonService commonReasonService;

    @RequestMapping(value = "/getReasonList.aspx",method = RequestMethod.GET)
    public void getDictionary(@RequestParam(value = "channel") String channel,
                              @RequestParam(value = "category") Integer category,
                              @RequestParam(value = "type") Integer type){
        commonReasonService.returnReasonList(channel,category,type);
    }


}
